package com.honglv.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GetCommodityVO {
    // 文创id
    private Long id;

    // 文创名称
    private String name;

    // 文创图片
    private List<String> picture;


    // 文创介绍摘要
    private String summary;

    // 文创价格
    private BigDecimal price;

    public void setPicture(String pictures) {
        this.picture = new ArrayList<>(Arrays.asList(pictures.split(",")));
    }
}
